/*
 * @Description:
 * @Author: zekit
 * @Date: 2022-02-15 15:48:27
 * @LastEditors: zekit
 * @LastEditTime: 2022-02-17 17:40:37
 */
import request from '@/utils/request'

// 获取试卷列表
export function getExamList(data) {
    return request({
        url: '/examination/questionManager/exam/list',
        method: 'post',
        data: data
    })
}

// 删除考卷
export function delExam(data) {
    return request({
        url: '/examination/questionManager/exam/delete',
        method: 'post',
        data: data
    })
}

// 权限配置
export function editPermission(data) {
    return request({
        url: '/examination/questionManager/exam/editPermission',
        method: 'post',
        data: data
    })
}

// 查看权限配置
export function permissionDetail(data) {
    return request({
        url: '/examination/questionManager/exam/permission',
        method: 'post',
        data: data
    })
}

// 考试配置
export function examConfigApi(data) {
    return request({
        url: '/examination/questionManager/exam/editTime',
        method: 'post',
        data: data
    })
}


// 查看考试配置
export function examConfigDetail(data) {
    return request({
        url: '/jizhou-examination/questionManager/exam/time',
        method: 'post',
        data: data
    })
}

// 考试发布
export function examPublish(data) {
    return request({
        url: '/jizhou-examination/questionManager/exam/publish',
        method: 'post',
        data: data
    })
}

// 考卷生成
export function examInit(data) {
    return request({
        url: '/jizhou-examination/questionManager/exam/init',
        method: 'post',
        data: data
    })
}

// 考卷来源查询
export function originalPaperList(data) {
    return request({
        url: '/jizhou-examination/dropdown/originalPaperList',
        method: 'post',
        data: data
    })
}
